/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.mad.bikepony.model.impl;

import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.model.CacheModel;

import com.mad.bikepony.model.QuestionResponse;

import java.io.Serializable;

/**
 * The cache model class for representing QuestionResponse in entity cache.
 *
 * @author nicola
 * @see QuestionResponse
 * @generated
 */
public class QuestionResponseCacheModel implements CacheModel<QuestionResponse>,
	Serializable {
	@Override
	public String toString() {
		StringBundler sb = new StringBundler(7);

		sb.append("{questionnaireId=");
		sb.append(questionnaireId);
		sb.append(", questionId=");
		sb.append(questionId);
		sb.append(", vote=");
		sb.append(vote);
		sb.append("}");

		return sb.toString();
	}

	public QuestionResponse toEntityModel() {
		QuestionResponseImpl questionResponseImpl = new QuestionResponseImpl();

		questionResponseImpl.setQuestionnaireId(questionnaireId);
		questionResponseImpl.setQuestionId(questionId);
		questionResponseImpl.setVote(vote);

		questionResponseImpl.resetOriginalValues();

		return questionResponseImpl;
	}

	public long questionnaireId;
	public long questionId;
	public int vote;
}